package com.ivo.model.dcc;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "DCC_M_DocumentVersion")
public class DocumentVersion
{
	@Id
	@Column(name = "DocumentVersion_ID")
	private Long documentVersion_ID;
	
	@Column(name = "Document_FK")
	private Long document_FK;
	
	@Column(name = "ParentVersion_FK", nullable = true)
	private Long parentVersion_FK;
	
	@Column(name = "VersionNumber")
	private String versionNumber;
	
	@Column(name = "DocumentName")
	private String documentName;
	
	@Column(name = "DocumentName_Intl")
	private String documentName_Intl;
	
	@Column(name = "UserDepartment_FK")
	private String userDepartment_FK;
	
	@Column(name = "Requisitioner_FK")
	private String requisitioner_FK;
	
	@Column(name = "IncludeDept_FK")
	private String includeDept_FK;
	
	@Column(name = "StateFlag")
	private Integer stateFlag;
	
	@Column(name = "KeyWord")
	private String keyWord;
	
	@Column(name = "Summary")
	private String summary;
	
	@Column(name = "ReviseReason")
	private String reviseReason;
	
	@Column(name = "ReviseContent")
	private String reviseContent;
	
	@Column(name = "DateOfOrder")
	private Calendar dateOfOrder;
	
	@Column(name = "DateOfEffect")
	private Calendar dateOfEffect;
	
	@Column(name = "Memo")
	private String memo;
	
	@Column(name = "ValidFlag")
	private boolean validFlag;
	
	public DocumentVersion(){}

	public Long getDocumentVersion_ID() {
		return documentVersion_ID;
	}

	public void setDocumentVersion_ID(Long documentVersion_ID) {
		this.documentVersion_ID = documentVersion_ID;
	}

	public Long getDocument_FK() {
		return document_FK;
	}

	public void setDocument_FK(Long document_FK) {
		this.document_FK = document_FK;
	}

	public Long getParentVersion_FK() {
		return parentVersion_FK;
	}

	public void setParentVersion_FK(Long parentVersion_FK) {
		this.parentVersion_FK = parentVersion_FK;
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	public void setVersionNumber(String versionNumber) {
		this.versionNumber = versionNumber;
	}

	public String getDocumentName() {
		return documentName;
	}

	public void setDocumentName(String documentName) {
		this.documentName = documentName;
	}

	public String getDocumentName_Intl() {
		return documentName_Intl;
	}

	public void setDocumentName_Intl(String documentName_Intl) {
		this.documentName_Intl = documentName_Intl;
	}

	public String getUserDepartment_FK() {
		return userDepartment_FK;
	}

	public void setUserDepartment_FK(String userDepartment_FK) {
		this.userDepartment_FK = userDepartment_FK;
	}

	public String getRequisitioner_FK() {
		return requisitioner_FK;
	}

	public void setRequisitioner_FK(String requisitioner_FK) {
		this.requisitioner_FK = requisitioner_FK;
	}

	public String getIncludeDept_FK() {
		return includeDept_FK;
	}

	public void setIncludeDept_FK(String includeDept_FK) {
		this.includeDept_FK = includeDept_FK;
	}

	public Integer getStateFlag() {
		return stateFlag;
	}

	public void setStateFlag(Integer stateFlag) {
		this.stateFlag = stateFlag;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getReviseReason() {
		return reviseReason;
	}

	public void setReviseReason(String reviseReason) {
		this.reviseReason = reviseReason;
	}

	public String getReviseContent() {
		return reviseContent;
	}

	public void setReviseContent(String reviseContent) {
		this.reviseContent = reviseContent;
	}

	public Calendar getDateOfOrder() {
		return dateOfOrder;
	}

	public void setDateOfOrder(Calendar dateOfOrder) {
		this.dateOfOrder = dateOfOrder;
	}

	public Calendar getDateOfEffect() {
		return dateOfEffect;
	}

	public void setDateOfEffect(Calendar dateOfEffect) {
		this.dateOfEffect = dateOfEffect;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public boolean isValidFlag() {
		return validFlag;
	}

	public void setValidFlag(boolean validFlag) {
		this.validFlag = validFlag;
	}
	
}
